package core.mountedWeapons;

import core.Player;
import core.weapons.Bullet;
import core.weapons.Missile;

public class GenericMachinegun extends MountedWeapon {
	
	
	public GenericMachinegun(){
		ammo=40;
		maxAmmo=40;
		cooldown=10;
	}
	
	@Override
	public void fire(int startX, int startY, double dir, Player p){
		p.main.attacks.add(new Bullet(startX, startY, p, dir, 10, 3000, 0.04, 500000));
		//p.main.attacks.add(new Missile(startX, startY, p, dir));
		cooldownTimer=cooldown;
		ammo--;
	}
}
